#include "include/itreeitemfactory.h"



//TreeItem* SiblingItemFactory::createTreeItem(const QVector<QVariant> &data, TreeItem *parent) const
//{
//	return new TreeItem(data, parent);
//}


TreeItem* SiblingItemFactory::createTreeItem(TreeItem *parent) const
{
	return new TreeItem(parent);
}



//TreeItem* LeafItemFactory::createTreeItem(const QVector<QVariant> &data, TreeItem *parent) const
//{
//	TreeItem* item = new TreeItem(data, parent);
//	item->setIsCard(true);
//	return item;
//}


TreeItem* LeafItemFactory::createTreeItem(TreeItem *parent) const
{
	TreeItem* item = new TreeItem(parent);
	item->setIsCard(true);
	return item;
}
